//
//  SearchModel.swift
//  shop
//
//  Created by chen on 2025/5/17.
//

import SwiftUI

struct HotWord: Codable {
    @SafeArray var hotWords: [String]
    
    init(hotWords: [String] = []) {
        self.hotWords = hotWords
    }
}

struct Suggestion: Codable {
    let kw: String
    let total: Int64
    
    init(kw: String = "", total: Int64 = 0) {
        self.kw = kw
        self.total = total
    }
}

struct SearchGoodsResp: Codable {
    var totalNum: Int64
    @SafeArray var list: [GoodsItem]
    
    init(totalNum: Int64 = 0, list: [GoodsItem] = []) {
        self.totalNum = totalNum
        self.list = list
    }
}

struct SortType: Codable {
    let type: Int
    let name: String
}
